home *** CD-ROM | disk | FTP | other *** search
- #include <string.h>
- #include <ctype.h>
-
- /**************************************************************************/
-
- int (strncasecmp)(const char *String1, const char *String2, size_t Size)
-
- {
- int Result;
-
- Result=0;
- if (Size!=0)
- {
- while (!(Result=tolower(*String1)-tolower(*String2)) && *String1 && (--Size!=0))
- {
- String1++;
- String2++;
- }
- }
- return Result;
- }
-